package me.kafeitu.demo.activiti.entity.oa;

import java.io.Serializable;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;

import org.apache.commons.lang3.builder.ToStringBuilder;

/**
 * 请假的JPA映射实体
 *
 * @author: Henry Yan
 */
@Entity(name = "ANNOUNCE_JPA")
public class AnnounceJpaEntity implements Serializable {

	private static final long serialVersionUID = -4457438811100443762L;

	private Long id;
    private String processInstanceId;
    private String userId;
    private Date applyTime;
    private String content;
    private String title;


    /**
     * 部门领导是否同意
     */
    private String deptLeaderApproved;


    @Id
    @Column(name="ID")
    @GeneratedValue(strategy = GenerationType.AUTO)
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    @Column(name = "APPLY_TIME")
    public Date getApplyTime() {
        return applyTime;
    }

    public void setApplyTime(Date applyTime) {
        this.applyTime = applyTime;
    }



    @Column(name = "PROCESS_INSTANCE_ID")
    public String getProcessInstanceId() {
        return processInstanceId;
    }

    public void setProcessInstanceId(String processInstanceId) {
        this.processInstanceId = processInstanceId;
    }

    @Column(name = "USER_ID")
    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }


    @Column
    public String getDeptLeaderApproved() {
        return deptLeaderApproved;
    }

    public void setDeptLeaderApproved(String deptLeaderApproved) {
        this.deptLeaderApproved = deptLeaderApproved;
    }


    @Override
    public String toString() {
        return ToStringBuilder.reflectionToString(this);
    }
    
    @Column(name="CONTENT")
	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}
	@Column(name="TITLE")
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
}
